Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle trailing comma with multiple parameters on the same line #15097

Merged

Conversation

Blacksmoke16
Copy link
Member

This is going directly into release/1.14 given with #14718 being merged, master now enforces it so there is nothing to change anymore.

Fix here was basically allowing it to write the comma if the new formatter rules says there should be one, and there is already a comma present. This makes it BC since it won't add one without either the flag, or a comma already being present.

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Oct 18, 2024
@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 24, 2024
@Blacksmoke16
Copy link
Member Author

Probably doesn't make sense to add this to 1.15 milestone. Either it's released as a 1.14 patch, or closed.

@straight-shoota straight-shoota modified the milestones: 1.15.0, 1.14.1 Oct 24, 2024
@straight-shoota straight-shoota merged commit af2c00c into crystal-lang:release/1.14 Jan 6, 2025
66 checks passed
@Blacksmoke16 Blacksmoke16 deleted the trailing-comma-fix branch January 6, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants